package com.yunwushanhe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunwushanhe.bean.req.TagAddReq;
import com.yunwushanhe.bean.req.TagPageReq;
import com.yunwushanhe.bean.req.TagUpdateReq;
import com.yunwushanhe.bean.ret.ResponseResult;
import com.yunwushanhe.bean.vo.PageVO;
import com.yunwushanhe.bean.vo.TagListVO;
import com.yunwushanhe.bean.vo.TagPageVO;
import com.yunwushanhe.bean.vo.TagUpdateVO;
import com.yunwushanhe.entity.Tag;

import java.util.List;

/**
 * 标签(Tag)表服务接口
 *
 * @author 抬头看看天
 * @since 2023-08-15 21:25:09
 */
public interface TagService extends IService<Tag> {

    ResponseResult<PageVO<List<TagPageVO>>> getTagList(TagPageReq pageReq);

    ResponseResult<Object> addTag(TagAddReq tagAddReq);

    ResponseResult<Object> deleteTagById(String id);

    ResponseResult<TagUpdateVO> getTagById(Long id);

    ResponseResult<Object> updateTagById(TagUpdateReq updateReq);

    ResponseResult<List<TagListVO>> listAllTag();

}

